package com.yang.chen.oa.service;

import com.yang.chen.oa.domain.TbDept;
import com.yang.chen.oa.vo.PageBean;

import java.util.List;

public interface DeptService {

    public PageBean<TbDept> showDept(Integer pageNumber, Integer pageSize, String dname);

    public boolean addDept(TbDept dept);

    public boolean deleteById(Integer id);

    public boolean deleteBybatch(Integer[] ids);

    public TbDept findDeptById(Integer id);

    public boolean updateDept(TbDept dept);

    List<TbDept> selectAllDept();
}
